package com.ExaminStudy;

import java.util.Scanner;

public class Test5_2_1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请你输入要输入的数字个数n");
        int n=sc.nextInt();
        int[]arr=new int[n];
        int sum=0;
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请你输入第" + (i + 1) + "个数");
            arr[i] = sc.nextInt();
            sum+=arr[i];
        }
        double num=sum/n;
        for (int i = 0; i <arr.length ; i++) {
            if(num<arr[i]){
                System.out.print(arr[i]+",");
            }
        }
    }
}
